/**
 * 
 */
package com.pmsco.pms.core.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author Tran Thanh Long
 *
 */
@Entity
@Table(
	name = "PMS_PERMISSION"
)
public class PmsPermission {
	private Long id;
	private String permission;

	public static String idField = "id";
	public static String permissionField = "permission";
	/**
	 * @return the id
	 */
	@Id
	@GeneratedValue
	@Column(name = "ID", nullable = false)
	public Long getId() {
		return id;
	}
	
	/**
	 * @param id the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}
	
	/**
	 * @return the permission
	 */
	@Column(name = "PERMISSION", nullable = false)
	public String getPermission() {
		return permission;
	}
	
	/**
	 * @param permission the permission to set
	 */
	public void setPermission(String permission) {
		this.permission = permission;
	}
}
